package com.flyway.service;


import com.flyway.pojo.captcha.ImageVerificationDto;
import com.flyway.pojo.captcha.ImageVerificationVo;
import org.springframework.stereotype.Service;

/**
 * @Description: 验证码业务实现类
 * -------------------
 * @Author: xupx
 */
public interface CaptchaService  {

    /**
     * 获取滑动验证码
     * @param imageVerificationDto 验证码参数
     * @return 滑动验证码
     */
    public ImageVerificationVo selectSlideVerificationCode(ImageVerificationDto imageVerificationDto);

    /**
     * 滑动验证码验证方法
     *
     * @param token
     * @param x x轴坐标
     * @param y y轴坐标
     * @return 滑动验证码验证状态
     */
    public boolean checkVerificationResult(String token, String x, String y) ;
}